package cn.runagain.demo.wechatminiappdemo.config;

import com.zaxxer.hikari.HikariDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * created by
 *
 * @author tuxianchao
 * @date 2018/6/11 下午5:38
 */
@Configuration
public class Jdcbtemplate {
    @Bean
    public JdbcTemplate jdbcTemplate(HikariDataSource hikariDataSource) {
        return new JdbcTemplate(hikariDataSource);
    }


}
